﻿using System.Windows;
using System.Windows.Controls;
using wordroid.Model;

namespace wordroid.View
{
    public partial class AnswerPanel : UserControl {
        public AnswerPanel(Translation content) {
            InitializeComponent();
            Trans = content;
            AnswerButton.Content = content.translation;
        }

        public Translation Trans { get; set; }

        public RoutedEventHandler AnswerClick {
            set { AnswerButton.Click += value; }
        }

        public RoutedEventHandler SpeakerClick {
            set { SpeakButton.Click += value; }
        }
    }
}
